package com.whalehearing.tingyou.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 用户签到对象 user_sign_in
 *
 * @author zengjun-qxm
 * @date 2024-08-09
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
public class UserSignIn {
    private static final long serialVersionUID = 1L;

    /**
     * 用户签到表id
     */
    @TableId(type = IdType.AUTO)
    private Integer signInId;

    /**
     * 已连续签到天数
     */
    private Long userId;

    /**
     * 已连续签到天数
     */
    private Integer continuousSignIn;

    /**
     * 音符
     */
    private Integer musicalNote;

    /**
     * 经验值
     */
    private Integer experienceValue;

    /**
     * 徽章，1听友先锋，2听旅初探,3听觉大师,4听友知音,5听心依旧,6听界静音
     */
    private Integer badge;

    /**
     * 徽章类型，0默认类型，1听友元老徽章
     */
    private Integer badgeType;

    /**
     * 最新签到时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime latestSignInTime;

    /**
     * 是否删除
     */
    private Integer isDeleted;

}
